package com.dkm.ec.activity.repository;

import com.dkm.biz.repository.IRepository;
import com.dkm.ec.activity.domain.CommonActivityConfig;
import com.dkm.ec.activity.persistence.entity.CommonActivityConfigPo;

import java.util.List;

/**
 * Created by fanjinyuan on 2017/8/11.
 */
public interface CommonActivityConfigRepository extends IRepository<String, CommonActivityConfigPo, CommonActivityConfig> {

    /**
     * 查询某个类型下面今日的活动列表
     * @param type
     * @return
     */
    public List<CommonActivityConfigPo> findTodayActivities(String type);

    /**
     * 通过id获取详情
     * @param id
     * @return
     */
    public CommonActivityConfigPo get(String id);

}
